package client;

import client.game.entity.character.player.LocalPlayer;
import client.game.world.World;
import client.gui.GameFrame;
import client.net.Connection;

public class Client {
	
	private static final int WIDTH = 700;
	private static final int HEIGHT = 700;
	private static final int DEFAULT_REGION_SIZE = 50;
	private static final int DEFAULT_TILE_SIZE = 32;
	private static final String TITLE = "unnamedrpg";
	private static GameFrame gameFrame;
	private static World gameWorld;
	private static LocalPlayer player;
	private static Connection connection;
	
	
	public Client() {
		connection = new Connection("127.0.0.1", 4592);
		new Thread(connection).start();
		gameWorld = new World();
		gameFrame = new GameFrame(TITLE, WIDTH, HEIGHT);
		player = new LocalPlayer();
	}
	
	public static void main(String[] args) {
		new Client();
	}
	
	public static GameFrame getGameFrame() {
		return gameFrame;
	}
	
	public static World getWorld() {
		return gameWorld;
	}
	
	public static LocalPlayer getPlayer() {
		return player;
	}
	
}